#Include <FindText>
#Include const\LightningBuyConst.ahk

t1:=A_TickCount, Text:=X:=Y:=""
; 证券代码
Text:="|<>*176$47.U0984c3wjw+U99s811zkW0YE20E15l8g4Dzaw4F9844IECzGSE48Uo2YVToF0c5N08UV9TfG0V11HUIY2221Z0Xz8M4106U"
;买入价格 4.***
;Text:="|<>*170$74.00A04E8U00007z0U142D000000E40WUYE00004U1094yc0000Uc0c6UW40000MW0+2YFmU00064U2U94P60002jzV42F+T0001840F0YEYE000T2M8894940000X1412F2T0000T0+08cEYE0000U"
; 买入数量
;Text:="|<>*174$47.00A04ETwzs40eUW80E40F12EY087vrzkc0c394F4E1E/+Dy4U2UZIF5zw8UEczs40F3tE40H112F3zX141350EM1E1NFTzU"
; 买入按钮
Text := LightningBuyConst.BUY_BUTTON_TEXT

if (ok:=FindText(&X, &Y, 872-150000, 502-150000, 872+150000, 502+150000, 0, 0, Text))
{
   FindText().Click(X, Y, "L")
}
;Send "{Delete}"+
Send("^a")
SendInput "000100"